/**Copyright 2007 Ultrapower Software Co. Ltd.
 * All right reserved. 
 *
 * 2007-7-4,下午03:19:32
 */
package com.osgix.common.pojo.temp;

import java.io.Serializable;

/**
 * <b>角色Bean</b>
 *
 * <b>@author zqmao 2007-7-4,下午03:19:32</b>
 *
 * <b>version 1.0</b>
 */
public class Role implements Serializable {

	/**
	 * 2009-5-12,下午07:12:50
	 * @author Administrator
	 * @version 2.0
	 *
	 */
	private static final long serialVersionUID = -1507048746742552963L;

	/**
	 * 角色ID
	 */
	private String id = "";

	/**
	 * 角色名称
	 */
	private String name = "";

	/**
	 * 上级角色ID
	 */
	private String super_id;

	/**
	 * 角色描述
	 */
	private String note = "";

	/**
	 * 状态，0：正常；1：内置
	 */
	private int state = 0;

	/**
	 * 构造函数
	 *
	 */
	public Role() {

	}

	/**
	 * 构造函数
	 * @param id
	 * @param name
	 * @param super_id
	 * @param node
	 */
	public Role(String id, String name, String super_id, String node) {
		this(id, name, super_id, node, 0);
	}

	/**
	 * 构造函数
	 * @param id
	 * @param name
	 * @param super_id
	 * @param node
	 */
	public Role(String id, String name, String super_id, String node, int state) {
		this.id = id;
		this.name = name;
		this.super_id = super_id;
		this.note = node;
		this.state = state;
	}

	/*
	 * (non-Javadoc)
	 * @see java.lang.Object#clone()
	 */
	public Object clone() {
		return new Role(id, name, super_id, note, state);
	}

	/*
	 * (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return id + "/" + name + "/" + super_id + "/" + note;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSuper_id() {
		return super_id;
	}

	public void setSuper_id(String super_id) {
		this.super_id = super_id;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String node) {
		this.note = node;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

}